FROM golang:1.17.2-alpine3.14
LABEL maintainer="yld@geektime.org"LABEL build_date="2021-10-17"
# 添加代码到 容器中
WORKDIR $GOPATH/src/
ADD . $GOPATH/src/
RUN go build httpserver.go
EXPOSE 8089
# 最终运行docker的命令
ENTRYPOINT  ["./httpserver"]